home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / RGASM.RAR / ASMCODE.EXE / CHAPT1-5 / HELLO4.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-05-10  |  569 b   |  16 lines

  1. ;
  2. ;       Program Hello4 ( Chapter 3 )        
  3. ;        
  4.     TITLE    Hello Example Program 3   ; title is not necessary
  5. .model  tiny
  6. .data
  7. Hello   DB       'Hello!$'                 ; define string to display
  8. .code
  9. .startup
  10.     LEA      DX,byte ptr Hello         ; DS:DX - effective address of string
  11.     MOV      ah,09h                    ; function 09h - output text string
  12.     INT      21h                       ; DOS service call
  13.     MOV      ax,4C00h                  ; function 4Ch - terminate process
  14.     INT      21h                       ; DOS service call
  15.     END
  16.